package com.example.chatchatbackend.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.chatchatbackend.entity.dto.Customer;
import com.example.chatchatbackend.mapper.CustomerMapper;
import com.example.chatchatbackend.service.CustomerService;
import org.springframework.stereotype.Service;

@Service
public class CustomerServiceImpl extends ServiceImpl<CustomerMapper, Customer> implements CustomerService {

    @Override
    public Customer findAccountByUsername(String username) {
        return this.query().eq("username",username).one();
    }
}
